fix: course outline not found issue for ccx courses #36128
+18
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds
cms.djangoapps.contentstore.apps.ContentstoreConfig
inINSTALLED_APPS
for CCX feature in production settings. Without this, the course publish signals are not triggerred at the time of CCX creation resulting in aCourseOutlineData.DoesNotExist
error for the CCX courses.Useful information to include:
changes.
Supporting information
https://github.com/mitodl/hq/issues/3880
Testing instructions
To test this locally, follow the steps below
private.py
in LMS, add these settings to enable CCX:private.py
in CMS, add this setting:In Studio, create a course and go to advanced settings. Toggle the "Enable CCX" setting there.
Next, go to the course's instructor dashboard, open the membership tab, and add a CCX coach.
Log in as the CCX coach, open the course you created, go to the CCX coach tab, and create a CCX. (You can find all the steps to create a CCX in the docs).
Save your changes in the Schedule Tab, then check the course outline of the CCX course.
CourseOutlineData.DoesNotExist
error in your LMS logs.To fix this, update the
INSTALLED_APPS
line in LMS settings to:Go back to the Schedule Tab, make any changes, and save again.
Finally, revisit the course outline page of the CCX course.
Deadline
"None"
Other information
Include anything else that will help reviewers and consumers understand the change.